package com.huawei.appmarket.service.store.awk.card;

import android.content.Context;
import com.huawei.appgallery.foundation.ui.framework.cardkit.bean.CardBean;
import com.huawei.appmarket.service.store.awk.bean.HorizontalPromoteAppCardBean;
import com.huawei.appmarket.service.store.awk.bean.HorizontalPromoteAppItemCardBean;
import com.huawei.appmarket.service.store.awk.bean.HorizontalPromoteProductCardBean;
import java.util.List;
import o.Logger;

public class HorizontalPromoteAppCard extends NormalHorizonCard {
    public HorizontalPromoteAppCard(Context context) {
        super(context);
    }

    public void ˏ(CardBean cardBean) {
        if (cardBean instanceof HorizontalPromoteAppCardBean) {
            HorizontalPromoteAppCardBean horizontalPromoteAppCardBean = (HorizontalPromoteAppCardBean) cardBean;
            List ʼᐝ = horizontalPromoteAppCardBean.ʼᐝ();
            int i = 0;
            while (i < ʼᐝ.size()) {
                if (ʼᐝ.get(i) instanceof HorizontalPromoteAppItemCardBean) {
                    HorizontalPromoteAppItemCardBean horizontalPromoteAppItemCardBean = (HorizontalPromoteAppItemCardBean) ʼᐝ.get(i);
                    horizontalPromoteAppItemCardBean.ˋˋ(horizontalPromoteAppCardBean.ॱˉ());
                    for (HorizontalPromoteProductCardBean ˋˋ : horizontalPromoteAppItemCardBean.ʻˊ()) {
                        ˋˋ.ˋˋ(horizontalPromoteAppCardBean.ॱˉ());
                    }
                    i++;
                } else {
                    Logger.ˏ("HorizontalPromoteAppCard", "setData: list's item is not instanceof HorizontalPromoteAppItemCardBean");
                    return;
                }
            }
        }
        super.ˏ(cardBean);
    }
}
